package com.example.pharmacy.model;

import lombok.Data;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: asus
 * Date: 2024-12-21
 * Time: 17:39
 */
@Data
public class PageResult<T> {
    private PageRequest pageRequest;
    private List<T> drugInfos;
    private Integer total;

    public PageResult(List<T> results, Integer count, PageRequest pageRequest) {
        drugInfos = results;
        total = count;
        this.pageRequest = pageRequest;
    }
}
